package com.qg.cyapp.util;

import java.util.ArrayList;
import java.util.List;

import com.qg.cyapp.bean.FoodBean;


/**
 * @author xuan
 * 2014-10-30
 * 
 */
public class SearchMenu {
	
	private static List<FoodBean> list;
	static   List<FoodBean> result;
	public static  List<FoodBean> searchMenu(String menu){
		result = new ArrayList<FoodBean>();
// 		list = MenuActivity2.foods;
		if(list == null){
			return null;
		}
		for(int i = 0; i < list.size();i++){
			if(list.get(i).name.contains(menu)){
				result.add(list.get(i));
			}
		}
		return result;
	}
}
